package com.taozitongxue.reflection;

public class ReflectionTest {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1 = Class.forName("com.taozitongxue.reflection.Person");
        Class c2 = Class.forName("com.taozitongxue.reflection.Person2");
        System.out.println(c1);
        System.out.println(c2);

    }
}
class Person{
    int age;
    String name;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Person2{
    int age;
    String name;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}